package com.bao.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


public class User {
  private Long user_no;

  private String user_name;

  private String user_like;
  private String user_phone;
  private String user_sex;

  public User() {
    System.out.println("User的无参构造");
  }

  public User(String user_name, String user_like) {
    this.user_name = user_name;
    this.user_like = user_like;
    System.out.println("User的user_name和user_like有参构造");
  }

  public Long getUser_no() {
    return user_no;
  }

  public void setUser_no(Long user_no) {
    this.user_no = user_no;
  }

  public String getUser_name() {
    return user_name;
  }

  public void setUser_name(String user_name) {
    this.user_name = user_name;
  }

  public String getUser_like() {
    return user_like;
  }

  public void setUser_like(String user_like) {
    this.user_like = user_like;
  }

  public String getUser_phone() {
    return user_phone;
  }

  public void setUser_phone(String user_phone) {
    this.user_phone = user_phone;
  }

  public String getUser_sex() {
    return user_sex;
  }

  public void setUser_sex(String user_sex) {
    this.user_sex = user_sex;
  }

  @Override
  public String toString() {
    return "User{" +
            "user_no=" + user_no +
            ", user_name='" + user_name + '\'' +
            ", user_like='" + user_like + '\'' +
            ", user_phone='" + user_phone + '\'' +
            ", user_sex='" + user_sex + '\'' +
            '}';
  }
}
